<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>帮助中心</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
  <link rel="icon" type="image/ico" href="/pc/inbox_icon.png">
  <style>
    /* 继承原有基础样式 */
    :root {
      --primary-blue: #2196F3;
      --secondary-blue: #42A5F5;
      --dark-blue: #1976D2;
      --background-blue: #E3F2FD;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.6;
      background-color: var(--background-blue);
      color: #333;
    }

    .container {
      max-width: 800px;
      margin: 0 auto;
      padding: 2rem;
    }

    /* 帮助页面调整后样式 */
    .help-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .faq-section {
      background: white;
      border-radius: 10px;
      padding: 2rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      max-width: 800px;
      margin: 0 auto;
    }

    .faq-item {
      margin-bottom: 1.5rem;
      border-bottom: 1px solid #eee;
      transition: all 0.3s ease;
    }

    .faq-question {
      color: var(--dark-blue);
      cursor: pointer;
      padding: 1rem 0;
      display: flex;
      align-items: center;
    }

    .faq-icon {
      color: var(--primary-blue);
      margin-right: 1rem;
      transition: transform 0.3s ease;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: all 0.3s ease;
      padding-left: 2rem;
    }

    /* 新增搜索框 */
    .search-box {
      margin: 2rem auto;
      max-width: 600px;
      position: relative;
    }

    .search-input {
      width: 100%;
      padding: 1rem 2rem;
      border: 2px solid var(--primary-blue);
      border-radius: 25px;
      font-size: 1rem;
    }

    .search-icon {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary-blue);
    }
  </style>
</head>
<body>
<div class="container">
  <div class="help-header">
    <h1>帮助中心</h1>
    <p>快速找到您需要的帮助信息</p>
  </div>

  <!-- 搜索框 -->
  <div class="search-box">
    <input type="text" class="search-input" placeholder="输入关键词搜索帮助内容...">
    <i class="fas fa-search search-icon"></i>
  </div>

  <!-- 常见问题部分 -->
  <div class="faq-section">
    <h2>常见问题解答</h2>
    <div class="faq-item">
      <div class="faq-question">
        <i class="fas fa-question-circle faq-icon"></i>
        如何创建新邮件模板？
      </div>
      <div class="faq-answer">
        <p>1. 点击右上角"新建模板"按钮<br>
          2. 登录后点击开始使用<br>
          3. 使用拖拽编辑器创建内容<br>
          4. 保存后即可重复使用</p>
      </div>
    </div>

    <div class="faq-item">
      <div class="faq-question">
        <i class="fas fa-question-circle faq-icon"></i>
        如何发送html邮箱？
      </div>
      <div class="faq-answer">
        <p>进入账户设置 → 选择"团队管理" → 点击"添加成员"<br>
          输入成员邮箱 → 设置权限级别 → 发送邀请</p>
      </div>
    </div>

    <div class="faq-item">
      <div class="faq-question">
        <i class="fas fa-question-circle faq-icon"></i>
        如何修改模版格式？
      </div>
      <div class="faq-answer">
        <p>1.进入在线编辑页面：<br>
           2.导入模版html文件<br>
           3.修改点击修改页面元素或者拖拽组件<br>
           4.导出模版，拿到html代码</p>
      </div>
    </div>
  </div>
</div>

<script>
  // FAQ交互逻辑
  document.querySelectorAll('.faq-question').forEach(item => {
    item.addEventListener('click', () => {
      const answer = item.nextElementSibling;
      const icon = item.querySelector('.faq-icon');

      answer.style.maxHeight = answer.style.maxHeight
              ? null
              : answer.scrollHeight + 'px';

      icon.style.transform = icon.style.transform === 'rotate(180deg)'
              ? 'rotate(0deg)'
              : 'rotate(180deg)';
    });
  });

  // 简单搜索功能
  document.querySelector('.search-input').addEventListener('input', (e) => {
    const searchTerm = e.target.value.toLowerCase();
    document.querySelectorAll('.faq-item').forEach(item => {
      const text = item.textContent.toLowerCase();
      item.style.display = text.includes(searchTerm) ? 'block' : 'none';
    });
  });
</script>
</body>
</html>